﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApp
{
    public partial class register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void create_Click(object sender, EventArgs e)
        {
            IDAO con = new MyData();

            if (con.addUser(this.login.Text, this.password.Text, this.email.Text) == 1)
            {
                Response.Redirect("~/login.aspx");
            }
        }
    }
}
